
<template>
<div style="width:100%;height:100%;">
    <!-- 看不懂就对了，诶 -->
    <div id="navbar1" style="display: none;">
        <li data-tab="doc" data-info="biz" class="j-menu-desgin" title="表单设置" @click="goFormSetting">表单设置</li>
        <li data-tab="doc" data-info="base" class="j-menu-base" title="基础数据表" @click="goBaseDataTable">基础数据表  </li>
    </div>
    <implant-menu :pageInfo="menuInfo" :menuData="menuData" @menuCheck="menuCheck"></implant-menu>
</div>
</template>

<script>
import ImplantMenu from "@/components/ImplantMenu.vue"
export default {
    name: "base-data",
    components: {
        ImplantMenu
    },
    computed: {},
    data: () => ({
        menuInfo: {
            pageName: "基础数据设置",
            isShowHelp: false
        },
        menuData: [
            {
                name: "公共基础数据",
                routerPath: "/baseData/businessAppList",
                iframeSrc: "/cap4/business.do?method=businessAppList&type=base&bizConfigId=null",
                checked: true,
               
            }, {
                name: "枚举",
                routerPath: "/baseData/metaData",
                iframeSrc: "/enum.do?method=orgMetadataIndex&bizConfigId=null",
                checked: false,
                
            }, {
                name: "流水号",
                routerPath: "/baseData/serialNumber",
                iframeSrc: "/form/serialNumber.do?method=index&bizConfigId=null",
                checked: false,
            }
        ]
    }),
    created() {},
    mounted() {
    },
    watch: {
    },
    methods: {
        menuCheck(menu) {
            this.menuData.forEach(item =>{
                item.checked = menu.name === item.name;
            })
        }, 
        goBaseDataTable() {
            // this.$router.push({
            //     path: "/baseData/businessAppList"
            // })
            this.$router.go(0);
            //window.location.refresh();
        },
        goFormSetting() {

        }
    }
}
</script>